package com.ssy.lingxi.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.dto.request.InvoiceMessageListRequest;
import com.ssy.lingxi.dto.request.InvoiceProveGetVO;
import com.ssy.lingxi.dto.response.InvoiceMessageResponse;
import com.ssy.lingxi.dto.response.InvoiceProveVO;
import com.ssy.lingxi.feign.InvoiceMessageControllerFeigen;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

@Component
public class InvoiceMessageControllerFallback implements InvoiceMessageControllerFeigen {

    /**
     * 结算规则配置 发票信息详情查询
     *
     * @author wrc
     * @date 2020/10/28
     */
    @Override
    public Wrapper<InvoiceMessageResponse> invoiceMessageDetails(Long id) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }

    /**
     * 根据会员角色ids,查询会员默认发票
     * @param memberList
     * @return
     */
    @Override
    public Wrapper<List<InvoiceMessageResponse>> getMemberInvoiceMessageList(@RequestBody @Valid InvoiceMessageListRequest memberList) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }

    /**
     * 根据单据编号+结算类型，获取单据[发票凭证]信息列表
     * @param invoiceProveGetVO
     * @return
     */
    @Override
    public Wrapper<List<InvoiceProveVO>> getInvoiceProve(@Valid InvoiceProveGetVO invoiceProveGetVO) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }
}
